
<%@ page import="your_car_status.Vehicle" %>
<!DOCTYPE html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <a href="#show-vehicle" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  <div id="show-vehicle" class="content scaffold-show" role="main">
    <h1>Show Vehicle</h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list vehicle">

      <g:if test="${vehicleInstance?.licensePlate}">
        <li class="fieldcontain">
          <span id="licensePlate-label" class="property-label"><g:message code="vehicle.licensePlate.label" default="License Plate" /></span>

          <span class="property-value" aria-labelledby="licensePlate-label"><g:fieldValue bean="${vehicleInstance}" field="licensePlate"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.serialNumber}">
        <li class="fieldcontain">
          <span id="serialNumber-label" class="property-label"><g:message code="vehicle.serialNumber.label" default="Serial Number" /></span>

          <span class="property-value" aria-labelledby="serialNumber-label"><g:fieldValue bean="${vehicleInstance}" field="serialNumber"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.policyNumber}">
        <li class="fieldcontain">
          <span id="policyNumber-label" class="property-label"><g:message code="vehicle.policyNumber.label" default="Policy Number" /></span>

          <span class="property-value" aria-labelledby="policyNumber-label"><g:fieldValue bean="${vehicleInstance}" field="policyNumber"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.mileage}">
        <li class="fieldcontain">
          <span id="mileage-label" class="property-label"><g:message code="vehicle.mileage.label" default="Mileage" /></span>

          <span class="property-value" aria-labelledby="mileage-label"><g:fieldValue bean="${vehicleInstance}" field="mileage"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.fuelType}">
        <li class="fieldcontain">
          <span id="fuelType-label" class="property-label"><g:message code="vehicle.fuelType.label" default="Fuel Type" /></span>

          <span class="property-value" aria-labelledby="fuelType-label"><g:fieldValue bean="${vehicleInstance}" field="fuelType"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.carMake}">
        <li class="fieldcontain">
          <span id="carMake-label" class="property-label"><g:message code="vehicle.carMake.label" default="Car Make" /></span>

          <span class="property-value" aria-labelledby="carMake-label"><g:fieldValue bean="${vehicleInstance}" field="carMake"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.carModel}">
        <li class="fieldcontain">
          <span id="carModel-label" class="property-label"><g:message code="vehicle.carModel.label" default="Car Model" /></span>

          <span class="property-value" aria-labelledby="carModel-label"><g:fieldValue bean="${vehicleInstance}" field="carModel"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.colour}">
        <li class="fieldcontain">
          <span id="colour-label" class="property-label"><g:message code="vehicle.colour.label" default="Colour" /></span>

          <span class="property-value" aria-labelledby="colour-label"><g:fieldValue bean="${vehicleInstance}" field="colour"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.customer}">
        <li class="fieldcontain">
          <span id="customer-label" class="property-label"><g:message code="vehicle.customer.label" default="Customer" /></span>

          <span class="property-value" aria-labelledby="customer-label"><g:link controller="customer" action="edit" id="${vehicleInstance?.customer?.id}">${vehicleInstance?.customer?.name}</g:link></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.cylinderNumber}">
        <li class="fieldcontain">
          <span id="cylinderNumber-label" class="property-label"><g:message code="vehicle.cylinderNumber.label" default="Cylinder Number" /></span>

          <span class="property-value" aria-labelledby="cylinderNumber-label"><g:fieldValue bean="${vehicleInstance}" field="cylinderNumber"/></span>

        </li>
      </g:if>

      <g:if test="${vehicleInstance?.type}">
        <li class="fieldcontain">
          <span id="type-label" class="property-label"><g:message code="vehicle.type.label" default="Type" /></span>

          <span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${vehicleInstance}" field="type"/></span>

        </li>
      </g:if>

    </ol>
    <g:form>
    <fieldset class="buttons">
      <g:link class="save" action="listVehicles">Return</g:link>
    </fieldset>
    </g:form>
  </div>
</body>
</html>
